Skip to content

only send messages to valid emails #6551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

escattone
Copy link
Contributor

@escattone escattone requested a review from akatsoulas March 10, 2025 21:26
@escattone escattone force-pushed the prevent-invalid-emails-from-spoiling-rest branch 2 times, most recently from c7b4b80 to 462df6f Compare March 10, 2025 22:47
@escattone escattone force-pushed the prevent-invalid-emails-from-spoiling-rest branch 3 times, most recently from 0e0abcb to 7e0805e Compare March 11, 2025 23:15
@escattone escattone force-pushed the prevent-invalid-emails-from-spoiling-rest branch from 7e0805e to 34b7b2a Compare March 11, 2025 23:16
Copy link
Collaborator

@akatsoulas akatsoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+wc

@@ -132,3 +133,26 @@ def test_styles_inlining(self):
for m in msg:
tag = '<a href="https://%s/test" style="color:#000">Hyperlink</a>'
self.assertIn(tag % Site.objects.get_current().domain, str(m.message()))


class SendMessagesTests(TestCase):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to add a test with invalid emails too

Copy link
Collaborator

@akatsoulas akatsoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+wc

@akatsoulas akatsoulas merged commit fe11b11 into mozilla:main Mar 12, 2025
2 checks passed
@escattone escattone deleted the prevent-invalid-emails-from-spoiling-rest branch March 12, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants